import request from './network.js'

// 获取品牌数据
export function getCarBrandList(header) {
  return request({
    url: '/gcdOrder/getCarBrandList',
    headers: header
  })
}

// 获取车系数据
export function getSeriesTypeList(prams, header) {
  return request({
    url: '/gcdOrder/getSeriesTypeList',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取车型数据
export function getCarvehicleTypeList(prams, header) {
  return request({
    url: '/gcdOrder/getCarvehicleTypeList',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取经销商获取方案列表
export function getSchemeList(prams, header) {
  return request({
    url: '/gcdOrder/getSchemeList',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取贴息方案
export function getCarDiscountinterest(prams,header) {
  return request({
    url: '/gcdOrder/getCarDiscountinterest',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 订单提交
export function createOrder(prams, header) {
  return request({
    url: '/gcdOrder/createOrder',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 保存用户，下单
export function createUser(prams, header) {
  return request({
    url: '/gcdOrder/createUser',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取订单列表
export function getListOrderBySiteUserId(prams, header) {
  return request({
    url: '/gcdOrder/getListOrderBySiteUserId',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取订单详情
export function getOrderDetailsByOrderId(prams, header) {
  return request({
    url: '/gcdOrder/getOrderDetailsByOrderId',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取账单列表
export function getListBillByOrderId(prams, header) {
  return request({
    url: '/gcdOrder/getListBillByOrderId',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取商户端选择的数据
export function getOrderLinshiByid(prams, header) {
  return request({
    url: '/gcdOrder/getOrderLinshiByid',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}